package com.example.book_recommend.entity;

import java.util.Date;

public class Privilege {
    private Integer privId;

    private String name;

    private String code;

    private String url;

    private Integer parentId;

    private Date created;

    private Date updated;

    private Integer isParent;

    public Privilege(Integer privId, String name, String code, String url, Integer parentId, Date created, Date updated, Integer isParent) {
        this.privId = privId;
        this.name = name;
        this.code = code;
        this.url = url;
        this.parentId = parentId;
        this.created = created;
        this.updated = updated;
        this.isParent = isParent;
    }

    public Privilege() {
        super();
    }

    public Integer getPrivId() {
        return privId;
    }

    public void setPrivId(Integer privId) {
        this.privId = privId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Integer getIsParent() {
        return isParent;
    }

    public void setIsParent(Integer isParent) {
        this.isParent = isParent;
    }
}